import { createRouter, createWebHistory } from 'vue-router';
import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
    { path: '/', component: () => import('./view/home/index.vue') },
    { path: '/room', component: () => import('./view/room/index.vue') },
    { path: '/game', component: () => import('./view/game/index.vue') },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
